const mongoose = require("mongoose")

const Dynamic = new mongoose.Schema({
    dynamic_date:{
        type:Number,
        required:true,
        select:true
    },
    dynamic_content:{
        type:String,
        required:true,
        select:true
    },
    dynamic_user_avatar:{
        type:String,
        required:true,
        select:true
    },
    dynamic_imgs:{
        type:Array,
        default:[],
        select:true
    },
    dynamic_creator_id:{
        type:String,
        required:true,
        select:true
    },
    dynamic_creator_name:{
        type:String,
        required:true,
        select:true
    },
    dynamic_read_friends:{
        type:Array,
        default:[],
        select:true
    },
    dynamic_new:{
        type:Number,
        default:0,
        select:true
    }
})

module.exports = mongoose.model("dynamic",Dynamic,"dynamic")